package cn.hk.orderquerye.controller;

import cn.HK.po.Emp;
import cn.HK.po.Order;
import cn.HK.po.User;
import cn.HK.vo.HkUIResult;
import cn.hk.orderquerye.emp.EmpView;
import cn.hk.orderquerye.service.QueryEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/order")
public class QueryEmpController {
    @Autowired
    private QueryEmpService queryEmpService ;
    /*
     * 查询用户所有订单
     * 请求地址：/order/querye/{eId}
     * */
    @RequestMapping(value = "/querye/{eId}",method = RequestMethod.GET)

    public List<EmpView> queryEmpOrders(@PathVariable("eId") String eId){
        return  queryEmpService.queryEmpOrders(eId);
    }

}
